package com.example.meitao.fragment;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.example.meitao.R;
import com.example.meitao.ui.MainActivity;

/**
 * Created by 琚雷 on 2016-9-2.
 */
public class FollowFragment extends Fragment implements View.OnClickListener {
    private ImageView mImageView;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        View view =LayoutInflater.from(getActivity()).inflate(R.layout.fragment_follow,null);
        initView(view);

        return  view;
    }

    private void initView(View view) {

        mImageView = (ImageView) view.findViewById(R.id.iv_follow_look);
        mImageView.setOnClickListener(this);
    }


    @Override
    public void onClick(View view) {
startActivity(new Intent(getActivity(), MainActivity.class));
    }
}
